﻿using SCM.Common;
using SqlSugar;

namespace SCM.Model.DBEntity
{
    /// <summary>
    /// 材质明细表
    /// </summary>
    [SugarTable("T_Material_HomogeneousDtl")]
    public class T_Material_HomogeneousDtl 
    {
        /// <summary>
        /// 材质明细ID
        /// </summary>
        public string ID { get; set; }

        /// <summary>
        /// 材质ID
        /// </summary>
        public string MaterialHomogeneousID { get; set; }

        /// <summary>
        /// 成分ID(CASNo)
        /// </summary>
        public string MaterialIngredientID { get; set; }

        /// <summary>
        /// 成分名称
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string MaterialIngredientName { get; set; }

        /// <summary>
        /// 成分含量百分比
        /// </summary>
        public decimal? Concentration { get; set; }

        /// <summary>
        /// 数据状态
        /// </summary>
        public DataStatusEnum DataStatus { get; set; } = DataStatusEnum.Valid;

        /// <summary>
        /// 数据状态
        /// </summary>
        [SugarColumn(IsIgnore = true)]
        public string DataStatusStr { get { return EnumHelper.GetDescription(DataStatus); }}
    }
}